package com.njtoyo.taxi.admin.mapper.master.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.njtoyo.taxi.admin.mapper.master.enums.ScanRideOrdePaymentChannel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 扫码行程订单
 * </p>
 *
 * @author Dell
 * @since 2021-07-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "ScanRideOrder对象", description = "扫码行程订单")
public class ScanRideOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "扫码行程ID")
    private Long scanRideId;

    @ApiModelProperty(value = "订单编号")
    private String number;

    @ApiModelProperty(value = "外部订单号")
    private String outTradeNumber;

    @ApiModelProperty(value = "订单金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "实际支付金额")
    private BigDecimal paymentAmount;

    @ApiModelProperty(value = "抵扣金额")
    private BigDecimal discountAmount;

    @ApiModelProperty(value = "司机所得金额")
    private BigDecimal driverEarnAmount;

    @ApiModelProperty(value = "支付渠道 0:ali_pay[支付宝],1:wx_pay[微信],2:union_pay[云闪付]")
    private ScanRideOrdePaymentChannel paymentChannel;

    @ApiModelProperty(value = "是否已支付")
    private Boolean isPaid;

    @ApiModelProperty(value = "支付时间戳")
    private Integer paidTimestamp;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updatedAt;


}
